GtkGLArea: Correctly position/size input window on realize
authorAlexander Larsson <alexl@redhat.com>
Mon, 3 Nov 2014 12:35:00 +0000 (13:35 +0100)
committerAlexander Larsson <alexl@redhat.com>
Mon, 3 Nov 2014 12:35:00 +0000 (13:35 +0100)
gtk/gtkglarea.c

index d0882b7e36d00aec928b1e704576e852ef5f179d..3b030f50ddc9882f42a20217bd7391fe952702c9 100644 (file)
@@ -268,6 +268,8 @@ gtk_gl_area_realize (GtkWidget *widget)
 
   GTK_WIDGET_CLASS (gtk_gl_area_parent_class)->realize (widget);
 
+  gtk_widget_get_allocation (widget, &allocation);
+
   attributes.window_type = GDK_WINDOW_CHILD;
   attributes.x = allocation.x;
   attributes.y = allocation.y;